package com.stock.mapper;

import com.stock.pojo.domain.StockBlockDomain;
import com.stock.pojo.entity.StockBlockRtInfo;
import com.stock.pojo.entity.StockRtInfo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
* @author AA173
* @description 针对表【stock_block_rt_info(股票板块详情信息表)】的数据库操作Mapper
* @createDate 2024-10-24 08:49:11
* @Entity com.stock.pojo.entity.StockBlockRtInfo
*/
public interface StockBlockRtInfoMapper {

    int deleteByPrimaryKey(Long id);

    int insert(StockBlockRtInfo record);

    int insertSelective(StockBlockRtInfo record);

    StockBlockRtInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(StockBlockRtInfo record);

    int updateByPrimaryKey(StockBlockRtInfo record);

    //获取沪深两市板块最新数据，以交易总金额降序查询，取前10条数据
    List<StockBlockDomain> getSectorLimit10(@Param("lastDate") Date lastDate);

    int insertBatch(@Param("infos") List<StockBlockRtInfo> infos);
}
